Uec3.ComponentDemoWindow = Ext.extend(Ext.app.Module, {
			id : 'demo',
			type : 'common/demo',

			/**
			 * Initialize this module. This function is called at startup (page
			 * load/refresh).
			 */
			init : function(initParams) {

			},

			/**
			 * Create this modules window here.
			 */
			createWindow : function() {
                
				var desktop = this.app.getDesktop();
				var win = desktop.getWindow('demodd');
				if (!win) {
					var ps = {
						size : '4',
						type : 'Company',
						page : '1',
						keyword : '0'
					};
					var store = new Ext.data.JsonStore({
								fields : ['id', 'pyCode', 'name'],
								id : "id",
								root : 'items',
								totalProperty : 'total',
								url : Uec3.App.Constants.homeUrl + "/comp/autotipsor.do",
								remoteSort : true,
								baseParams : ps
							});

					var lookupbox = new Ext.form.LookupBox2({
						// id:'lookupbox',
						store : store,
						displayField : 'name',
						lookupField : 'pyCode',
						valueField : 'id',
						hiddenName : 'country-box',
						typeAhead : false,
						mode : 'remote',
						tpl : '<tpl for="."><div ext:qtip="{pyCode}.{id}" class="x-combo-list-item">{pyCode}. {name}</div></tpl>',
						triggerAction : 'all',
						emptyText : '请选择公司...',
						selectOnFocus : true,
						// applyTo: 'local-pyCodes-lookupbox',
						queryDelay : 10,
						typeAheadDelay : 10,
						pageSize : 2,
						autoDestory : true,
						queryParam : 'keyword',
						app : this.app,
						triggerTags : [{
									moduleId : 'notepad'
								}, {
									moduleId : 'demo-bogus',
									triggerClass : 'x-form-search-trigger'
								}]
							// triggerTags:[{url:
							// 'http://localhost:8080/huarui/htdocs/test/dataAdd.html',height:400,width:500},{url:
							// 'http://localhost:8080/huarui/htdocs/test/dataSearch.html',triggerClass:'x-form-search-trigger'}]

						});
					/*
					 * var lookupbox = new Ext.form.TriggerField({ store: store,
					 * displayField:'name', valueField:'id',
					 * hiddenName:'country1', typeAhead: true, mode: 'remote',
					 * //pageSize: 10, //tpl : '<tpl for="."><div
					 * ext:qtip="{pyCode}. {name}"
					 * class="x-combo-list-item">{pyCode}. {name}</div></tpl>',
					 * triggerAction: 'all', emptyText:'Select a Company...',
					 * selectOnFocus:true //applyTo: 'local-pyCodes-combo' });
					 */
					store.on("beforeload", function(st, opts) {
								var start = 0;
								if (opts.params["start"]) {
									start = opts.params["start"];
								}
								// alert("s="+start);
								var size = lookupbox.pageSize;
								var page = start / size + 1;
								var keyword = lookupbox.getRawValue();

								// 如果采用store默认的支持分页参数start和limit,可以不用设置以下这些参数

								opts.params["size"] = size;
								opts.params["page"] = page;
								// 当在LookupBox里配置了queryParam:'keyword'时,可以不用动态设置此值

								opts.params["keyword"] = keyword;
							});
					var panel = new Ext.FormPanel({
								frame : true,
								border : true,
								autoHeight : true,
								autoWidth : true,
								url : '',
								items : [lookupbox]
							});

					win = desktop.createWindow({
								// id: 'demodd',
								title : '通用组件演示',
								width : 500,
								height : 400,
								iconCls : 'acc-icon',
								shim : false,
								animCollapse : false,
								constrainHeader : true,
								maximizable : true,
								taskbuttonTooltip : "通用组件演示",
								layout : "fit",
								items : [panel]
							});
					win.show();
					lookupbox.on("change", function() {
								alert("----------");
							}, this);
					// lookupbox.setValue("dddd");
					lookupbox.initializeValue({
								name : '资料',
								pyCode : 'sdd',
								id : '122'
							});
				}
			}
		});